package com.stone.serverless.sdk.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: TODO
 * @Author: MECHREVO
 * @Date: 2022/1/23 16:46
 * @Version: 1.0.0
 */
@AllArgsConstructor
@Getter
public enum RuntimeTypeEnum {
    SPRING("spring");

    private String code;


    public static RuntimeTypeEnum of(String code) {
        for (RuntimeTypeEnum codeEnum : values()) {
            if (codeEnum.getCode().equals(code)) {
                return codeEnum;
            }
        }
        return null;
    }
}
